public class demo8 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(()->{
            for (int i = 0; i < 100000; i++) {
                System.out.println("hello thread");

            }

        });
        t.start();
        Thread.sleep(100);
        System.out.println(t.isAlive());
    }
}
